package mainPackage;

//import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.ListIterator;

public class Application {

	public static void main(String[] args) {
			
		Handler handler = new Handler("Marcel","Frehe", new GregorianCalendar(1986,Calendar.APRIL,9));
		
		Dog dog		= new Dog("Jack", handler,"2765646516543", new GregorianCalendar(2011,Calendar.MAY,3), new GregorianCalendar(2014,Calendar.AUGUST,20,0,0,0));
		Dog dog2	= new Dog("Rusty", handler,"2765646516543", new GregorianCalendar(2008,Calendar.APRIL,12), new GregorianCalendar(2014,Calendar.OCTOBER,20,0,0,0));
		Dog dog3	= new Dog("Maybe", handler,"2765646516543", new GregorianCalendar(2011,Calendar.MAY,3), new GregorianCalendar(2013,Calendar.AUGUST,20,0,0,0));
		
		ArrayList<Dog> dogs = handler.getDogs();
		
		ListIterator<Dog> li = dogs.listIterator();
		
		while(li.hasNext()) {
			Dog bufferDog = li.next();
			System.out.println(bufferDog);
		}
	}

}
